// Copyright 2021 Guoyoko. All Rights Reserved.


#include "SWLevelEditorCommands.h"
#include "SWGameViewportClient.h"
#include "Slate/SceneViewport.h"


#define LOCTEXT_NAMESPACE "SWLevelEditorCommands"

FSWLevelEditorCommands::FSWLevelEditorCommands()
	: TCommands<FSWLevelEditorCommands>
	(
		"SWLevelEditorCommands", // Context name for fast lookup
		NSLOCTEXT("Contexts", "SWLevelEditor", "SW Level Editor"), // Localized context name for displaying
		NAME_None, 
		"Default"
	)
{
}

void FSWLevelEditorCommands::RegisterCommands()
{
	UI_COMMAND(ScreenShot, "Screen Shot", "High Res Screenshot ", EUserInterfaceActionType::Button, FInputChord());

}

void FSWLevelEditorActionCallbacks::ScreenShot()
{
	if (GVC && GVC->GetGameViewport())
	{
		GVC->GetGameViewport()->TakeHighResScreenShot();
	}
}

#undef LOCTEXT_NAMESPACE

